<html>

	<head>
		<meta charset="UTF-8">
		<title>文件上传</title>
		<script type="text/javascript">
			var add = function() {
				var div = document.getElementById("div2");
				var br = document.createElement("br");
				var input = document.createElement("input");
				var button = document.createElement("button");
				input.setAttribute("type", "file");
				button.setAttribute("type", "button");
				div.appendChild(br);
				div.appendChild(input);
			}
		</script>
	</head>

	<body>
		<div>
			<label>文件路径</label>
			<input type="file" />
			<input type="button" id="btn" value="再上传一个文件" onclick="add()" />
		</div>
		<div id="div2"></div>
	</body>

<html>